
package gov.nih.nlm.ncbi.soap.eutils.elink;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for IdCheckListType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="IdCheckListType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;choice maxOccurs="unbounded" minOccurs="0">
 *           &lt;element name="Id" type="{http://www.ncbi.nlm.nih.gov/soap/eutils/elink}IdType"/>
 *           &lt;element name="IdLinkSet" type="{http://www.ncbi.nlm.nih.gov/soap/eutils/elink}IdLinkSetType"/>
 *         &lt;/choice>
 *         &lt;element ref="{http://www.ncbi.nlm.nih.gov/soap/eutils/elink}ERROR" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IdCheckListType", propOrder = {
    "idOrIdLinkSet",
    "error"
})
public class IdCheckListType {

    @XmlElements({
        @XmlElement(name = "Id", required = true, type = IdType.class),
        @XmlElement(name = "IdLinkSet", required = true, type = IdLinkSetType.class)
    })
    protected List<Object> idOrIdLinkSet;
    @XmlElement(name = "ERROR")
    protected String error;

    /**
     * Gets the value of the idOrIdLinkSet property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the idOrIdLinkSet property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getIdOrIdLinkSet().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link IdType }
     * {@link IdLinkSetType }
     * 
     * 
     */
    public List<Object> getIdOrIdLinkSet() {
        if (idOrIdLinkSet == null) {
            idOrIdLinkSet = new ArrayList<Object>();
        }
        return this.idOrIdLinkSet;
    }

    /**
     * Gets the value of the error property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getERROR() {
        return error;
    }

    /**
     * Sets the value of the error property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setERROR(String value) {
        this.error = value;
    }

}
